﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RecruitingApplication.Data_Model;

namespace RecruitingApplication.Admin
{
    public partial class Settings : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataAccessLayer.OpenDB();

            this.StatesRepeater.DataSource = DataAccessLayer.GetAllStates();
            this.StatesRepeater.DataBind();

            this.PositionsRepeater.DataSource = DataAccessLayer.GetAllPositions();
            this.PositionsRepeater.DataBind();

            this.HeardAboutsRepeater.DataSource = DataAccessLayer.GetAllHeardAbouts();
            this.HeardAboutsRepeater.DataBind();

            DataAccessLayer.CloseDB();
        }
    }
}